import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import {h} from 'vue';
import {Switch} from 'ant-design-vue';

export const columns: BasicColumn[] = [
  {
    title: '广告名称',
    dataIndex: 'advName',
    width: 200,
  },
  {
    title: '图片',
    dataIndex: 'advImg',
    width: 200,
  },
  {
    title: '发布状态 0:未发布 1:已发布',
    dataIndex: 'advStatus',
    width: 200,
  },
  {
    title: '内容',
    dataIndex: 'content',
    width: 200,
  },
  {
    title: '首页广告1,商城广告2,3弹屏广告',
    dataIndex: 'advType',
    width: 200,
  },
  {
    title: '',
    dataIndex: 'goodsId',
    width: 200,
  },
  {
    title: '',
    dataIndex: 'sort',
    width: 200,
  },
  {
    title: '跳转方式',
    dataIndex: 'jumpType',
    width: 200,
  },
  {
    title: '',
    dataIndex: 'isCanBuy',
    width: 200,
  },
  {
    title: '',
    dataIndex: 'weChatId',
    width: 200,
  },
  {
    title: '是否删除',
    dataIndex: 'deleted',
    width: 200,
  },
  {
    title: '更新人',
    dataIndex: 'updateUser',
    width: 200,
  },
  {
    title: '更新时间',
    dataIndex: 'updateTime',
    width: 200,
  },
  {
    title: '创建人',
    dataIndex: 'createUser',
    width: 200,
  },
  {
    title: '创建时间',
    dataIndex: 'createTime',
    width: 200,
  },
];

export const searchFormSchema: FormSchema[] = [];

export const formSchema: FormSchema[] = [
  {
    label: '广告名称',
    field: 'advName',
    component: 'Input',
    required: true,
  },
  {
    label: '图片',
    field: 'advImg',
    component: 'Input',
    required: true,
  },
  {
    label: '发布状态 0:未发布 1:已发布',
    field: 'advStatus',
    component: 'Input',
    required: true,
  },
  {
    label: '内容',
    field: 'content',
    component: 'Input',
    required: true,
  },
  {
    label: '首页广告1,商城广告2,3弹屏广告',
    field: 'advType',
    component: 'Input',
    required: true,
  },
  {
    label: '',
    field: 'goodsId',
    component: 'Input',
    required: true,
  },
  {
    label: '',
    field: 'sort',
    component: 'Input',
    required: true,
  },
  {
    label: '跳转方式',
    field: 'jumpType',
    component: 'Input',
    required: true,
  },
  {
    label: '',
    field: 'isCanBuy',
    component: 'Input',
    required: true,
  },
  {
    label: '',
    field: 'weChatId',
    component: 'Input',
    required: true,
  },
  {
    label: '是否删除',
    field: 'deleted',
    component: 'Input',
    required: true,
  },
  {
    label: '更新人',
    field: 'updateUser',
    component: 'Input',
    required: true,
  },
  {
    label: '更新时间',
    field: 'updateTime',
    component: 'Input',
    required: true,
  },
  {
    label: '创建人',
    field: 'createUser',
    component: 'Input',
    required: true,
  },
  {
    label: '创建时间',
    field: 'createTime',
    component: 'Input',
    required: true,
  },
];
